package lumis.portal.channel;

import lumis.util.EnumException;


public enum ChannelType
{
	Channel,
	Portal;

	public int getInt()
    {
    	return this.ordinal();
    }

	public static ChannelType getFor(int value) throws EnumException
	{
		for (ChannelType type : ChannelType.values())
		{
		   if (type.ordinal() == value)
		     return type;
		}
		
		throw new EnumException("INVALID_VALUE_FOR_CHANNELCONFIGTYPE;" + value);
	}
}
